{include file="pub_header.htm"}

{include file="pub_search.htm"}

<div class="layout_place">
  <div class="place_current">
    <ul>
      <li><a href="{$lang.s._public.global.weburl}" target="_self">{$lang.s._public.global.website}</a></li>
      <li><span>&#187;<span></li>
      <li><a href="{$control_index}?act=login" target="_self">用户注册</a></li>
    </ul>
  </div>
</div>

<div class="layout_content">
  <div class="content_one_all">
    <div class="box_one_register">
      <div class="title">
        <h2>用户注册</h2>
        <span></span>
      </div>
      <div class="content">
        <form id="register_member" name="register_member" method="post" action="javascript:void(null);" enctype="multipart/form-data">
          <ul>
            <li>
              <span class="subject">用户名称:</span>
              <span class="fill"><input type="text" id="username" name="username" class="input" maxlength="60" size="60" style="width:320px;" /></span>
              <span class="explain"><span id="username_return" name="username_return"><span class="prompt_primal">4-60字节</span></span></span>
            </li>
            <li>
              <span class="subject">登录密码:</span>
              <span class="fill"><input type="password" id="password1" name="password1" class="input" maxlength="60" size="60" style="width:320px;" /></span>
              <span class="explain"><span id="password1_return" name="password1_return"><span class="prompt_primal">6-20字节</span></span></span>
            </li>
            <li>
              <span class="subject">确认密码:</span>
              <span class="fill"><input type="password" id="password2" name="password2" class="input" maxlength="60" size="60" style="width:320px;" /></span>
              <span class="explain"><span id="password2_return" name="password2_return"><span class="prompt_primal">密码确认</span></span></span>
            </li>
            <li>
              <span class="subject">电子信箱</span>
              <span class="fill"><input type="text" id="email" name="email" class="input" maxlength="60" size="60" style="width:320px;" /></span>
              <span class="explain"><span id="email_return" name="email_return"><span class="prompt_primal">找回密码将用到E-mail,请认真填写</span></span></span>
            </li>
            <li>
              <span class="subject">密码提示问题:</span>
              <span class="fill">
                <select id="question" name="question" class="select" size="1" style="width:80px;">
                  <option value=""></option>
                  {return_select sort="question"}
                  {foreach name=question from=$question item=item}
                    <option value="{$item.id}">{$item.name}</option>
                  {/foreach}
                  <option value="custom">=自定义=</option>
                </select>
                <span id="question_custom_show" name="question_custom_show">
                  <input type="text" id="question_custom" name="question_custom" size="30" style="width:235px;" maxlength="30" value="" class="input">
                </span>
              </span>
              <span class="explain"><span id="question_return" name="question_return"><span class="prompt_primal">找回密码等重要操作将用到密码提示问题</span></span></span>
            </li>
            <li>
              <span class="subject">密码提示答案:</span>
              <span class="fill"><input type="text" id="answer" name="answer" size="60" style="width:320px;" maxlength="30" class="input" value=""  /></span>
              <span class="explain"><span id="answer_return" name="answer_return"><span class="prompt_primal">找回密码等重要操作将用到密码提示答案</span></span></span>
            </li>
            <li>
              <span class="subject">验证码:</span>
              <span class="multifill">
                <input type="text" id="verifycode" name="verifycode" size="8" style="width:60px;" maxlength="4" class="input" value=""  />
                <span style="cursor:pointer;" onclick="xajax_switch_verifycode('vc_register_show','{$control_index}','vc_register');"><span id="vc_register_show"><img src="{$control_index}?act=verifycode&vc=vc_register" border="0" align="absmiddle"></span></span>
              </span>
              <span class="explain">
                <span id="verifycode_return" name="verifycode_return"><span class="prompt_primal">为防止恶意批量注册,请输入左侧验证码</span></span>
              </span>
            </li>
            <li>
              <span class="show_subject">{$lang.s._public.global.website}条款</span>
              <span class="show_content"><div class="rule"><h3>{$lang.s._public.global.website}条款</h3>{$lang.s.register.forum_rule}</div></span>
            </li>
            <li>
              <span class="subject">&nbsp;</span>
              <span class="fill">
                <input type="checkbox" id="agree" name="agree" value="1" class="checkbox" /> 我已阅读并接受[<span class="salient">{$lang.s._public.global.website}条款</span>]
              </span>
              <span class="explain"><span id="agree_return"><span class="prompt_primal">您必须同意服务条款才能注册</span></span></span>
            </li>
            <li>
              <span class="subject">&nbsp;</span>
              <span class="fill">
                <input type="button" id="register_submit" name="register_submit" value="确定" class="button"
                   onclick="xajax.$('register_submit').disabled=true;
                            xajax.$('register_submit').value='请等待...';
                            xajax_register_member(xajax.getFormValues('register_member'));" /></td>
              </span>
              <span class="explain">&nbsp;</span>
            </li>
          </ul>
        </form>
      </div>
      <div class="footer"><span></span></div>
    </div>
  </div>
</div>

{include file="pub_footer.htm"}
